package com.kayt.cyberBar.cpublic.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.cpublic.business.entity.po.CPublicDepart;

public interface IPublicDepartDao {
	CPublicDepart findById(String departId);
	
	CPublicDepart findByCode(String departCode) throws SQLException;
	
	Integer delete(String departId);
	
	Long save(CPublicDepart entity) throws SQLException;
	
	void modify(CPublicDepart entity) throws SQLException;
	
	PageData<CPublicDepart> findByPage(String hql, Object[] params, LinkedHashMap<String, String> orderMap) throws SQLException;

	PageData<CPublicDepart> getDepartList(LinkedHashMap<String, String> orderMap) throws SQLException;
	
}
